<!DOCTYPE html>
<html  lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>学生满意度调查</title>
	<link type="text/css" rel="stylesheet" th:href="@{/css/all.css}"/>

	<script language='javascript' th:src='@{/js/echarts.js}'></script>
	<script language='JavaScript' th:src='@{/plugin/jQuery/jQuery-2.2.0.min.js}'></script>
	<script language='javascript' th:src='@{/js/constant.js}'></script>
	<script language='JavaScript' th:src='@{/plugin/bootstrap/js/bootstrap.min.js}'></script>
	<script language='JavaScript' th:src='@{/plugin/bootstrap-table/bootstrap-table.js}'></script>
	<script language='JavaScript' th:src='@{/plugin/adminLTE/js/app.min.js}'></script>
	<script language='JavaScript' th:src='@{/plugin/lobibox/dist/js/lobibox.js}'></script>
	<script language='JavaScript' th:src='@{/js/network.js}'></script>
	<script language='JavaScript' th:src='@{/js/common.js}'></script>
	<script language='JavaScript' th:src='@{/js/public.js}'></script>
	<script language='JavaScript' th:src='@{/plugin/iCheck/icheck.min.js}'></script>
<style type="text/css">
.icon-storage>i {
	cursor: pointer;
}
</style>
</head>
<body class="body-contrainner fadeInUp">
	<div class="nav-tabs-custom tab-info no-margin">
		<ul class="nav nav-tabs">
			<li><a href="/stu/Survey/toYjld">满意度概况</a></li>
 			<li><a href="/stu/Survey/toYjldXy">各二级学院对比</a></li>
 			<li><a href="/stu/Survey/toYjldZy">各专业对比</a></li>
 			<li class="active"><a href="javascript:void(0);">较差原因显示</a></li>
 			<li class="pull-right  header"></li>
		</ul>
			<div class="tab-content">


                <div class="wrapper" style="height: auto; min-height: 100%;">
                    <section class="content">
                                    <div class="box-header">
                            <form id="form-search" class="form-inline has-info"
                                style="margin-left: 15px">
                                <div class="form-group">
                                    <label class="control-label">子类名称</label>
                                    <select id= "zlmc" name="zlmc" class="form-control">
                                    <option value="" selected="selected" >
										&#45;&#45;&#45;请选择&#45;&#45;&#45;
									</option>
									<option th:value="${zlmcName}" th:each="zlmcName : ${zlmc}" th:text="${zlmcName}">
									</option>
                                    </select>
                                </div>
                                <div class="form-group">
                                    <button id="btn-search" type="button" class="btn btn-info">
                                        <i class="fa fa-search margin-r-5"></i>查询
                                    </button>
<!--                                    <button id="btn-export" type="button" class="btn btn-default">
                                        <i class="fa fa-download margin-r-5"></i>导出
                                    </button>-->
                                </div>
                            </form>
                        </div>

                        <div class="row">
                            <div class="col-md-12">
                                      <div class="box box-widget">
                                        <div class="box-footer box-comments">
                                                    <div class="box-comment" style="margin-top: 2px;margin-bottom: 2px;" th:each="list : ${badReason}">
                                                        <img class="img-circle img-sm" th:src='@{/img/hzw.jpg}' alt="User Image">
                                                        <div class="comment-text" >
                                                              <span class="username" style="margin-bottom: 5px;" >
                                                                <span class="text-muted pull-right" th:text="${list.f_name}"></span>
																  <span th:text="${list.name}"></span>
                                                              </span>
															<span th:text="${list.bad_reason}"></span>
                                                        </div>
                                                    </div>
                                        </div>
                                      </div>
                            </div>
						</div>
                    </section>
                </div>


     <input id="name11" th:value="${nameValue}" hidden>

	<script language="JavaScript">

/* 	function getParam(params) {
		return commonTools.getBootstrapParams(params, $("#form-search"));
	}

	 function getTable(){
			var func_link = "/xsfk/jcyyck";
			var zlmc = $("#zlmc").val();
			var params = "func_link="+func_link +  "&cnd_name=" + zlmc;
			$("#data-table").bootstrapTable({url: publicData.urls.analysis.cfg.getOneTableByUrl + "?" + encodeURI(params)});
		}
        getTable();


	$("#btn-search").click(function() {
		var func_link = "/xsfk/jcyyck";
		var zlmc = $("#zlmc").val();
		var params = "func_link="+func_link +  "&cnd_name=" + zlmc;
		$("#data-table").bootstrapTable("refresh", {pageNumber:1, url:publicData.urls.analysis.cfg.getOneTableByUrl+"?"+encodeURI(params)});
	});*/
	
	var nameValue=$("#name11").val();
	$("#zlmc").val(nameValue)
    $("#btn-search").click(function () {
    	var zlmc = $("#zlmc").val();
	    window.location.href ="/stu/Survey/toYjldReason?name="+zlmc;
	 }); 
	
 /*   $("#btn-export").click(function () {
    	var zlmc = $("#zlmc").val();
	    window.location.href = publicData.urls.analysis.myd.export3+"?name="+zlmc;
	 });*/
	</script>
</body>
</html>